package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.storage.domain.StockOutInfoDetail;
import com.pureut.storage.dto.NewStockInfoDetailDto;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 *
 * @Description 领料出库明细Mapper
 * @Author 18741
 * @Date 2023/8/8 13:51
 **/
@Mapper
public interface StockOutInfoDetailMapper extends BaseMapperPlus<StockOutInfoDetailMapper,StockOutInfoDetail,StockOutInfoDetail> {

    /**
     * 获取当前批次的总重量
     * @param inputValue
     * @return
     */
    Double getPiHao(@Param("inputValue") String inputValue);

    /**
     * 获取当前单据的总重量
     * @param inputValue
     * @return
     */
    Double getDoc(@Param("inputValue") String inputValue);

    /**
     * 查询生产领料列表
     * @param docNum
     * @return
     */
    Page<NewStockInfoDetailDto> getStockInfoDetailList(@Param("page") Page<NewStockInfoDetailDto> page,@Param("docNum") String docNum);
}
